srchr/history

  • constructor
inherits: can.Control

Saves a list of [srchr/models/search] instances in local storage and allows you to remove these instances and set them as the new currentSearch.

Create a History control with a compute representing the current search like:

var currentSearch = can.compute(
      new Search({
        query: "ice cream",
        types: ["Flickr","Google"]})
);
new History("#list", {
  currentSearch: currentSearch
});